#include "Drive_TIM5.h"
#include "Drive_TIM4.h"
#include "Common_Time.h"
#include "Drive_USART_1.h"

/**
  * @brief  The application entry point.
  * @retval int
  */
int main(void) {

    Drive_USART_1_Init();

    Drive_TIM5_Init();
    Drive_TIM5_Start();
    Drive_TIM5_Duty(45);

    Drive_TIM4_Init();
    Drive_TIM4_Start();
    printf("oooooooooooooooo \n");
    while (1) {
        time_ms(100);
        printf("PWM_Period == %.5f, PWMFreq== %.5f HZ, PWM_Duty == %.5f %c \n", Drive_TIM4_PWM_Period(),
               Drive_TIM4_PWMFreq(), Drive_TIM4_PWM_Duty(), '%');
    }
}

